using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Decav.Gatsb.Application.Configuration
{
    /// <summary>
    /// An element of a <see cref="GatsbApplicationConfigurationSection"/> defining an <see cref="ICommandInterpreter"/>.
    /// </summary>
    public class CommandConfiguration : ConfigurationElement
    {
        public CommandConfiguration()
        {
        }

        /// <summary>
        /// Gets the display name of the mobile provider.
        /// </summary>
        [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
        public WorkflowCommandType Name
        {
            get
            {
                return (WorkflowCommandType)this["name"];
            }
        }

        /// <summary>
        /// Gets the prefixes for this command.
        /// </summary>
        [ConfigurationProperty("prefixes", IsRequired = true)]
        public string Prefixes
        {
            get
            {
                return (String)this["prefixes"];
            }
        }
    }
}
